import {setStorage, getStorage} from '@/utils/tools/tools'
import TYPE from './type';
export default {
    SET_USER (state, user) {
        state.sessionId = user.sessionId
        state.userType = user.userType
        state.userInfo = user
        setStorage('user', user)
    },
    OUT_SYS (state) {
        state.sessionId = ''
        state.userType = ''
        state.userInfo={}
        setStorage('user', {})
    }
}